﻿<Window x:Class="BaMusaSoft.RPS.View.AddActivityWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:p="clr-namespace:BaMusaSoft.RPS.View.Properties"
        Title="{Binding DisplayName}"
	    Width="400" Height="150" FlowDirection="RightToLeft" WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize" ShowInTaskbar="False">
    <Grid x:Name="LayoutRoot" >
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <ContentControl Grid.Row="0" Content="{Binding }" ContentTemplate="{StaticResource ContractActivityData}" IsTabStop="False"/>
            <StackPanel Grid.Row="1" Orientation="Horizontal">
                <Button Content="|&lt;" Command="{Binding Path=MoveToFirstCommand}" Margin="3"
                        ToolTip="{x:Static p:Resources.MoveToFirstLabel}"/>
                <Button Content="&lt;" Command="{Binding Path=MoveToPreviousCommand}" Margin="3"
                        ToolTip="{x:Static p:Resources.MoveToPreviousLabel}"/>
                <Button Content=">" Command="{Binding Path=MoveToNextCommand}" Margin="3"
                        ToolTip="{x:Static p:Resources.MoveToNextLabel}"/>
                <Button Content=">|" Command="{Binding Path=MoveToEndCommand}" Margin="3"
                        ToolTip="{x:Static p:Resources.MoveToEndLabel}"/>
            </StackPanel>
            <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Bottom" >
                <Button Content="{x:Static p:Resources.AddCommandLabel}"  Command="{Binding AddCommand}" Margin="3" Width="75" Height="30"/>
                <Button Content="{x:Static p:Resources.SaveCommandLabel}"  Command="{Binding SaveCommand}" Margin="3" Width="75" Height="30"/>
                <Button Content="{x:Static p:Resources.OkCommandLabel}"  Click="AddClicked" Margin="3" Width="75" Height="30" IsDefault="True" />
                <Button Content="{x:Static p:Resources.CancelCommandLabel}"  Click="CancelClicked" Margin="3" Width="75" Height="30" IsCancel="True" />
            </StackPanel>
        </Grid>
    </Grid>
</Window>
